/**
 *@filename       microFunc.go
 *@Description
 *@author          liyajun
 *@create          2022-12-21 23:05:39
 */

package utils

import (
	"github.com/asim/go-micro/plugins/registry/consul/v4"
	"go-micro.dev/v4"
)

// InitMicro
// @author: liyajun 2022-12-23 17:11:16
// @Description: 初始化micro客户端
// @return micro.Service
func InitMicro() micro.Service {
	// 初始化客户端
	return micro.NewService(
		micro.Registry(consul.NewRegistry()),
	)
}
